// 引入封装好的axios
import request from '@/utils/request'
/**
 * 模糊搜索鲜花信息
 */
export const flowerSearch = (params) => {
    return request({
      url: '/flowers/query',
      method: 'GET',
      params
    })
}
/**
 * 创建鲜花信息
 */
export const flowerCreate = (data) => {
    return request({
      url: '/flowers/create',
      method: 'POST',
      data
    })
}
/**
 * 修改鲜花信息
 */
export const flowerModify = (data) => {
    return request({
      url: '/flowers/modify',
      method: 'POST',
      data
    })
}
/**
 * 删除鲜花信息
 */
export const flowerDelete = (data) => {
    return request({
      url: '/flowers/delete',
      method: 'POST',
      data
    })
}
/**
 * 获取鲜花全部的种类
 */
export const flowerType = () => {
    return request({
      url: '/flowers/typeAll',
      method: 'GET',
    })
}
/**
 * 删除鲜花的种类
 */
export const flowerTypeDelete = (data) => {
    return request({
      url: '/flowers/typeDelete',
      method: 'POST',
      data
    })
}